package sdfi.lee.Entity;

import sdfi.lee.DAO.LabDAO;
import sdfi.lee.Entity.base.BaseTask;



public class Task extends BaseTask {
	private static final long serialVersionUID = 1L;
	private Integer labid=null;
public Integer getLabid() {
		return labid;
	}

	public void setLabid(Integer labid) {
		this.labid = labid;
	}

	/*[CONSTRUCTOR MARKER BEGIN]*/
	public Task () {
		super();
	}

	/**
	 * Constructor for primary key
	 */
	public Task (java.lang.Integer id) {
		super(id);
	}


/*[CONSTRUCTOR MARKER END]*/

	public String execute()
	{
		try
		{
		return new LabDAO().taskAdd(this);
		}
		catch(Exception ee)
		{
			System.out.println("Exception ee when task add");
			ee.printStackTrace();
			return "error";
		}
	
	}
}